import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type homeResult = {
  page: any;
  result: any
};

/** 分页查询分页查询企业 */
export const getSelorgbypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi(`/secbackend/org/selorgbypage`), { data });
};

/** 新增企业 */
export const addInsertorg = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/org/insertorg"), { data });
};


/** 删除企业 */
export const delorg = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/org/delorg/${userid}`));
};

/** 修改企业 */
export const updateorg = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/org/updateorg"), { data });
};

/** 查询企业详情 */
export const detailSelorg = (id?: string | number) => {
  return http.request<homeResult>("get", baseUrlApi(`/secbackend/org/selorg/${id}`));
};


/** 企业审核 */
export const updateSh = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/org/sh"), { data });
};









/** 新增产业服务 */
export const addInsertindustryecology = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/industryecology/insertindustryecology"), { data });
};


/** 删除产业 */
export const delindustryecology = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/secbackend/industryecology/delindustryecology/${userid}`));
};

/** 修改企业 */
export const updateindustryecology = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/industryecology/updateindustryecology"), { data });
};

/** 查询产业服务 */
export const selindustryecologybypage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/industryecology/selindustryecologybypage"), { data });
};
/** 产业服务审核 */
export const industryecologysh = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/secbackend/industryecology/sh"), { data });
};
